<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * P2pDictionary
 *
 * @ORM\Table(name="p2p_dictionary")
 * @ORM\Entity
 */
class P2pDictionary
{
    /**
     * @var string
     *
     * @ORM\Column(name="d_code", type="string", length=150, nullable=false)
     */
    private $dCode;

    /**
     * @var string
     *
     * @ORM\Column(name="d_name", type="string", length=150, nullable=false)
     */
    private $dName;

    /**
     * @var string
     *
     * @ORM\Column(name="d_url", type="string", length=100, nullable=false)
     */
    private $dUrl;

    /**
     * @var integer
     *
     * @ORM\Column(name="d_father_id", type="integer", nullable=false)
     */
    private $dFatherId;

    /**
     * @var string
     *
     * @ORM\Column(name="d_value", type="text", length=65535, nullable=false)
     */
    private $dValue;

    /**
     * @var boolean
     *
     * @ORM\Column(name="d_status", type="boolean", nullable=false)
     */
    private $dStatus;

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_del", type="boolean", nullable=false)
     */
    private $isDel;

    /**
     * @var integer
     *
     * @ORM\Column(name="d_sort", type="integer", nullable=false)
     */
    private $dSort = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="d_id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $dId;



    /**
     * Set dCode
     *
     * @param string $dCode
     *
     * @return P2pDictionary
     */
    public function setDCode($dCode)
    {
        $this->dCode = $dCode;

        return $this;
    }

    /**
     * Get dCode
     *
     * @return string
     */
    public function getDCode()
    {
        return $this->dCode;
    }

    /**
     * Set dName
     *
     * @param string $dName
     *
     * @return P2pDictionary
     */
    public function setDName($dName)
    {
        $this->dName = $dName;

        return $this;
    }

    /**
     * Get dName
     *
     * @return string
     */
    public function getDName()
    {
        return $this->dName;
    }

    /**
     * Set dUrl
     *
     * @param string $dUrl
     *
     * @return P2pDictionary
     */
    public function setDUrl($dUrl)
    {
        $this->dUrl = $dUrl;

        return $this;
    }

    /**
     * Get dUrl
     *
     * @return string
     */
    public function getDUrl()
    {
        return $this->dUrl;
    }

    /**
     * Set dFatherId
     *
     * @param integer $dFatherId
     *
     * @return P2pDictionary
     */
    public function setDFatherId($dFatherId)
    {
        $this->dFatherId = $dFatherId;

        return $this;
    }

    /**
     * Get dFatherId
     *
     * @return integer
     */
    public function getDFatherId()
    {
        return $this->dFatherId;
    }

    /**
     * Set dValue
     *
     * @param string $dValue
     *
     * @return P2pDictionary
     */
    public function setDValue($dValue)
    {
        $this->dValue = $dValue;

        return $this;
    }

    /**
     * Get dValue
     *
     * @return string
     */
    public function getDValue()
    {
        return $this->dValue;
    }

    /**
     * Set dStatus
     *
     * @param boolean $dStatus
     *
     * @return P2pDictionary
     */
    public function setDStatus($dStatus)
    {
        $this->dStatus = $dStatus;

        return $this;
    }

    /**
     * Get dStatus
     *
     * @return boolean
     */
    public function getDStatus()
    {
        return $this->dStatus;
    }

    /**
     * Set isDel
     *
     * @param boolean $isDel
     *
     * @return P2pDictionary
     */
    public function setIsDel($isDel)
    {
        $this->isDel = $isDel;

        return $this;
    }

    /**
     * Get isDel
     *
     * @return boolean
     */
    public function getIsDel()
    {
        return $this->isDel;
    }

    /**
     * Set dSort
     *
     * @param integer $dSort
     *
     * @return P2pDictionary
     */
    public function setDSort($dSort)
    {
        $this->dSort = $dSort;

        return $this;
    }

    /**
     * Get dSort
     *
     * @return integer
     */
    public function getDSort()
    {
        return $this->dSort;
    }

    /**
     * Get dId
     *
     * @return integer
     */
    public function getDId()
    {
        return $this->dId;
    }
}
